/*
 * @Description: Root Store
 * @Author: xuyang 
 * @Date: 2019-06-09 15:52:26 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-17 19:15:55
 */

import { configure, observable } from 'mobx';
import LoginStore from './LoginStore'; 
import homeStore from './homeStore';
import UIStore from './UIStore';
import HatchStore from './HatchStore';
import InviteStore from './InviteStore';
import MyStore from './MyStore';
import LuckStore from './LuckStore';

configure({ enforceActions: 'always' });

class Store {
//   @observable authStore
    constructor(storage) {
      this.loginStore = new LoginStore(this,storage);
      this.homeStore = new homeStore(this);
      this.uiStore = new UIStore(this);
      this.hatchStore = new HatchStore(this);
      this.inviteStore = new InviteStore(this);
      this.myStore = new MyStore(this);
      this.luckStore = new LuckStore(this);
    }
}
export default new Store();